.class public Lcom/estrongs/android/view/music/a;
.super Lcom/estrongs/android/view/FileGridViewWrapper;
.source "MusicGridViewWrapper.java"

# interfaces
.implements Lcom/estrongs/android/view/music/MusicPlayerView$a;


# instance fields
.field private T0:Lcom/estrongs/android/view/music/MusicPlayerView;

.field private U0:Lcom/estrongs/android/view/music/b;

.field private V0:Landroid/os/Handler;

.field private W0:Lcom/estrongs/android/view/music/b$f;

.field private X0:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/view/FileGridViewWrapper;-><init>(Landroid/content/Context;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V

    .line 2
    new-instance p1, Landroid/os/Handler;

    invoke-direct {p1}, Landroid/os/Handler;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/view/music/a;->V0:Landroid/os/Handler;

    .line 3
    new-instance p1, Lcom/estrongs/android/view/music/a$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/view/music/a$a;-><init>(Lcom/estrongs/android/view/music/a;)V

    iput-object p1, p0, Lcom/estrongs/android/view/music/a;->W0:Lcom/estrongs/android/view/music/b$f;

    .line 4
    new-instance p1, Lcom/estrongs/android/view/music/a$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/view/music/a$b;-><init>(Lcom/estrongs/android/view/music/a;)V

    iput-object p1, p0, Lcom/estrongs/android/view/music/a;->X0:Ljava/lang/Runnable;

    return-void
.end method

.method private G0()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->V0:Landroid/os/Handler;

    iget-object v1, p0, Lcom/estrongs/android/view/music/a;->X0:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    return-void
.end method

.method private H0()V
    .locals 1

    const/16 v0, 0x1f4

    .line 1
    invoke-direct {p0, v0}, Lcom/estrongs/android/view/music/a;->l(I)V

    return-void
.end method

.method private I0()V
    .locals 7

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    if-nez v0, :cond_0

    goto/16 :goto_4

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v0

    if-nez v0, :cond_1

    goto/16 :goto_3

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    iget-object v1, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    .line 4
    invoke-virtual {v1}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/f0;->r()Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    invoke-virtual {v1}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/f0;->q()Z

    move-result v1

    if-nez v1, :cond_2

    const/4 v1, 0x1

    goto :goto_0

    :cond_2
    const/4 v1, 0x0

    .line 5
    :goto_0
    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/music/MusicPlayerView;->a(Z)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/f0;->e()Les/so;

    move-result-object v0

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    invoke-virtual {v1}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/f0;->h()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    const/4 v3, 0x0

    if-eqz v0, :cond_4

    .line 8
    iget-object v4, v0, Les/so;->b:Ljava/lang/String;

    .line 9
    invoke-virtual {v0}, Les/so;->c()Z

    move-result v5

    if-eqz v5, :cond_3

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/f0;->c()Ljava/lang/String;

    move-result-object v3

    goto :goto_1

    .line 11
    :cond_3
    new-instance v5, Ljava/lang/Thread;

    new-instance v6, Lcom/estrongs/android/view/music/a$c;

    invoke-direct {v6, p0, v0}, Lcom/estrongs/android/view/music/a$c;-><init>(Lcom/estrongs/android/view/music/a;Les/so;)V

    invoke-direct {v5, v6}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 12
    invoke-virtual {v5}, Ljava/lang/Thread;->start()V

    goto :goto_1

    .line 13
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    invoke-virtual {v0}, Lcom/estrongs/android/view/music/MusicPlayerView;->a()V

    move-object v4, v2

    .line 14
    :goto_1
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 15
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 16
    :cond_5
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_6

    goto :goto_2

    :cond_6
    move-object v2, v3

    .line 17
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/music/MusicPlayerView;->setName(Ljava/lang/String;)V

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/view/music/MusicPlayerView;->setAuthor(Ljava/lang/String;)V

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    invoke-virtual {v0, v4}, Lcom/estrongs/android/view/music/MusicPlayerView;->setMusicPath(Ljava/lang/String;)V

    return-void

    .line 20
    :cond_7
    :goto_3
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    invoke-virtual {v0}, Lcom/estrongs/android/view/music/MusicPlayerView;->a()V

    :cond_8
    :goto_4
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/view/music/a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/view/music/a;->G0()V

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/view/music/a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/view/music/a;->I0()V

    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/view/music/a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/view/music/a;->H0()V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/view/music/a;)Lcom/estrongs/android/view/music/MusicPlayerView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    return-object p0
.end method

.method static synthetic e(Lcom/estrongs/android/view/music/a;)Lcom/estrongs/android/view/music/b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    return-object p0
.end method

.method static synthetic f(Lcom/estrongs/android/view/music/a;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic g(Lcom/estrongs/android/view/music/a;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    return-object p0
.end method

.method private l(I)V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->V0:Landroid/os/Handler;

    iget-object v1, p0, Lcom/estrongs/android/view/music/a;->X0:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->V0:Landroid/os/Handler;

    iget-object v1, p0, Lcom/estrongs/android/view/music/a;->X0:Ljava/lang/Runnable;

    int-to-long v2, p1

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method


# virtual methods
.method public b()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->h()V

    :cond_0
    return-void
.end method

.method public c()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->i()V

    :cond_0
    return-void
.end method

.method protected k()I
    .locals 1

    const v0, 0x7f0c028c

    return v0
.end method

.method protected o0()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->o0()V

    const v0, 0x7f090199

    .line 2
    invoke-virtual {p0, v0}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/view/music/MusicPlayerView;

    iput-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    .line 3
    invoke-virtual {v0, p0}, Lcom/estrongs/android/view/music/MusicPlayerView;->setOnPlayerViewListener(Lcom/estrongs/android/view/music/MusicPlayerView$a;)V

    .line 4
    new-instance v0, Lcom/estrongs/android/view/music/b;

    invoke-direct {v0}, Lcom/estrongs/android/view/music/b;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/music/b;->a(Landroid/content/Context;)V

    return-void
.end method

.method public onPlay()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    if-eqz v0, :cond_2

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->f()Z

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    iget-object v2, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    .line 5
    invoke-virtual {v2}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/app/f0;->r()Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    invoke-virtual {v2}, Lcom/estrongs/android/view/music/b;->a()Lcom/estrongs/android/pop/app/f0;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/app/f0;->q()Z

    move-result v2

    if-nez v2, :cond_0

    const/4 v1, 0x1

    .line 6
    :cond_0
    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/music/MusicPlayerView;->a(Z)V

    goto :goto_0

    .line 7
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->T0:Lcom/estrongs/android/view/music/MusicPlayerView;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/music/MusicPlayerView;->a(Z)V

    :cond_2
    :goto_0
    return-void
.end method

.method public v0()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->v0()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->b()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-static {v0}, Les/sx;->g(Landroid/content/Context;)V

    return-void
.end method

.method public w0()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->w0()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->c()V

    .line 4
    :cond_0
    invoke-direct {p0}, Lcom/estrongs/android/view/music/a;->G0()V

    return-void
.end method

.method public y0()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->y0()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    if-eqz v0, :cond_0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/view/music/a;->W0:Lcom/estrongs/android/view/music/b$f;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/music/b;->a(Lcom/estrongs/android/view/music/b$f;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/view/music/a;->U0:Lcom/estrongs/android/view/music/b;

    invoke-virtual {v0}, Lcom/estrongs/android/view/music/b;->d()V

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/view/music/a;->H0()V

    :cond_0
    return-void
.end method
